package com.hifar.test.structure.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hifar.model.BaseModel;
import com.hifar.plat.AopOption.Dict;
import com.hifar.plat.AopOption.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 资源-人员
 *
 * @TableName hf_env_res_person
 */
@ApiModel("体系管理-人员档案")
@Data
@TableName(value = "hf_env_res_person")
public class HfEnvResPerson extends BaseModel implements Serializable {
    /**
     * 姓名
     */
    @Excel(name = "姓名", sort = 1)
    private String idName;

    /**
     * 工号
     */
    @Excel(name = "工号", sort = 2)
    private String jobNo;

    /**
     * 性别 0 保密  1 男  2 女
     */
    @Excel(name = "性别", sort = 3)
    private Integer sex;

    /**
     * 部门名称
     */
    @Excel(name = "部门", sort = 4)
    private String deptName;

    /**
     * 专业
     */
    @Excel(name = "专业", sort = 5)
    private String major;

    /**
     * 电话
     */
    @Excel(name = "电话", sort = 6)
    private String mobile;

    /**
     * 邮箱
     */
    @Excel(name = "邮箱", sort = 7)
    private String email;

    @Excel(name = "状态", sort = 8)
    @ApiModelProperty(value = "状态")
    private String status;

    @Excel(name = "密级", sort = 9, dictCode = "hf_sys_datasecret")
    @Dict(dictCode = "hf_sys_datasecret")
    private Integer secretLevel;
    /**
     * 身份证号码
     */
    private String idCard;


    /**
     * 入职时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date entryTime;

    /**
     * 职位名称
     */
    private String postName;


    /**
     * 生日
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    /**
     * 民族编号
     */
    private String nationCode;

    /**
     * 民族名称
     */
    private String nationName;

    /**
     * 政治面貌编号
     */
    private String politicCode;

    /**
     * 政治面貌名称
     */
    private String politicName;

    /**
     * 学历编号
     */
    private String eduCode;

    /**
     * 学历名称
     */
    private String eduName;

    /**
     * 毕业院校
     */
    private String school;


    /**
     * 毕业时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date graduationTime;

}